<?php
require_once ROOT_PATH.'/Abstract/front_abstract.php';

class Action extends front_abstract
{
    function index()
    {
        $account_id = _POST('id');
        $fl = _POST('fl');
        if($fl == 'is'){
            $isfl = $this->api->follow($this->access_token, $account_id);
            exit(1);
        }
        else{
            $isfl = $this->api->unfollow($this->access_token, $account_id);
            exit(1);
        }
    }
}

?>
